package ran.domain.question.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-10-18
 * Time: 18:25
 */
@Data
public class QuestionAddDTO {
    @NotBlank(message = "题目不可以为空白")
    @NotNull(message = "题目不可以为空")
    private String title;
    @NotNull(message = "难度不可以为空")
    private Integer difficulty;
    @NotNull(message = "时间限制不可以为空")
    private Long timeLimit;
    @NotNull(message = "空间限制不可以为空")
    private Long spaceLimit;
    @NotBlank(message = "题目内容不可以为空白")
    @NotNull(message = "题目内容不可以为空")
    private String content;
    @NotBlank(message = "题目示例不可以为空白")
    @NotNull(message = "题目示例不可以为空")
    private String questionCase;
    @NotBlank(message = "默认代码块不可以为空白")
    @NotNull(message = "默认代码块不可以为空")
    private String defaultCode;
    @NotBlank(message = "主函数不可以为空白")
    @NotNull(message = "主函数不可以为空")
    private String mainFuc;
}
